from django.conf.urls import include, url
from django.urls import path
from users import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    # 注册
    url('^register$', views.RegisterView.as_view()),
    # 登录
    url('^login$', views.LoginView.as_view()),
    # 修改密码
    url('^update$', views.UpdateView.as_view()),
    # 修改信息
    url('^register$', views.InformationView.as_view()),
    # 忘记密码
    url('^register$', views.ForgetView.as_view()),
    # 用户收藏
    url('^collection$', views.CollectionView.as_view()),
    # 查询用户收藏
    url('^query_collection$', views.QueryCollectionView.as_view()),
    # 加入购物车
    url('^set_cart$', views.SetCartView.as_view()),
    # 查询购物车
    url('^query_cart$', views.QueryCardView.as_view()),
    # 从购物车中删除
    url('^del_cart$', views.DelCartView.as_view()),
    # 确认下单
    url('^place$', views.UserOrderView.as_view()),
    # 查询订单
    url('^query_order$', views.QueryOrderView.as_view()),
    # 分享获利
    url('^share$', views.ShareView.as_view()),

]
